Skip to content

Fix/sliding sync room state and unread - #1597

Merged
eleboucher merged 4 commits into
devfrom
fix/sliding-sync-room-state-and-unread
Aug 7, 2026
Merged

Fix/sliding sync room state and unread#1597
eleboucher merged 4 commits into
devfrom
fix/sliding-sync-room-state-and-unread

Conversation

@eleboucher

@eleboucher eleboucher commented Aug 3, 2026

Copy link
Copy Markdown
Member

Description

  • Per-client conn_id: generate a unique id per client instead of a shared constant.
  • Server support gate: check /versions before enabling sliding sync; fall back to classic sync if unsupported instead of retrying forever.
  • Unscoped receipts: stop scoping the receipts extension so unread state works for every sidebar room.
  • List coverage: remove the shrinking steady-state window and unused updates list; extend ranges to cover newly joined rooms instead.
  • Leave cleanup: extract removePassiveSubscriptions to also clear image-pack and deferred subscriptions on leave.
  • Response safety: wrap response corrections in try/catch so a throw can't wedge the sync loop.

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings

AI disclosure:

  • Partially AI assisted (clarify which code was AI assisted and briefly explain what it does).
  • Fully AI generated (explain what all the generated code does in moderate detail).

@eleboucher
eleboucher force-pushed the fix/sliding-sync-room-state-and-unread branch from 6bc2b76 to e3871cd Compare August 7, 2026 07:13
…state-and-unread

# Conflicts:
#	src/client/initMatrix.test.ts
@github-actions

github-actions Bot commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

Deploying with  Cloudflare Workers  Cloudflare Workers

Status Preview URL Commit Alias Updated (UTC)
✅ Deployment successful! https://pr-1597-sable.raspy-dream-bb1d.workers.dev 45a91f7 pr-1597 Fri, 07 Aug 2026 20:34:51 GMT

@eleboucher
eleboucher added this pull request to the merge queue Aug 7, 2026
Merged via the queue into dev with commit 49d6f0c Aug 7, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants